#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int search(int arr[], int sz, int n)
{
	int count = 0;
	for (int i = 0; i < 8; i++)
	{
		if (n == arr[i])
			count++;
	}
	return count;
}
int main()
{
	int arr[] = {1, 2, 3, 3, 3, 3, 4, 5};
	int n;
	int sz = sizeof(arr) / sizeof(arr[0]);
    for (int i = 0; i < 8; i++)
		printf("%d ", arr[i]);
	printf("\n");
	scanf("%d", &n);
	printf("%d", search(arr, sz, n));
	return 0;
}